﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Competition.Application.DTO;
using Competition.Domain.Entity;
using Competition.Domain.ValueObjects;

namespace Competition.Application.Interfaces
{
    public interface IIntroductionService:IBaseService<Introduction>
    {
        Task<List<IntroductionDto>> FindListAsync(IntroductionEnum classId);
        Task<IntroductionDto> FindAsync(int id);
        Task<int> AddAsync(IntroductionDto dto);
        Task<bool> UpdateAsync(IntroductionDto dto);
        Task<(PageDto pageDto, List<IntroductionDto> dtos)> FindListAsync(int pageIndex, int pageSize);
        Task<bool> DeleteAsync(int id);
    }
}